<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="control.UserControl"%>
<%@ page import="util.ParamUtil"%>
<%@ page import="model.User"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
 
    
    <title>用户信息修改</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <script language="javascript"> 
		function check()
		{
			    if(document.form1.user_name.value=="")
				{
					alert("姓名不能为空");
					document.form1.user_name.focus();
					return;
				}
				if(document.form1.user_pwd2.value=="")
				{
					alert("新密码不能为空");
					document.form1.user_pwd2.focus();
					return;
				}
				else if(document.form1.user_pwd3.value=="")
				{
					alert("确认密码不能为空");
					document.form1.user_pwd3.focus();
					return;
				}else
				{form1.submit();}
		} 
		</script>
  
  <body>
  <%
      request.setCharacterEncoding("UTF-8");
      int id=ParamUtil.getInt(request,"id",0);
  %>
 <form action="user_update_chuli.jsp?id=<%=id%>" name="form1" method="post">
  	<table width="400" border="0" cellpadding="2" cellspacing="0">
  	          <tr>
  	            <td>用户名</td>
  	            <td><input type="text" name="user_name"></td>
  	          </tr>
			  <tr>
			    <td>新密码</td>
			    <td><input type="password" name="user_pwd2"></td>
		      </tr>
			  <tr>
			    <td>确认密码</td>
			    <td><input type="password" name="user_pwd3"></td>
		      </tr>
    </table>
    <input type="button" name="button2" value="提交" onClick="check()" />
    <input type="reset" name="Reset" value="重置" />
 </form>
 </body>
</html>
